def main():
    nums = list(map(int, input().split()))
    for num in nums[::-1]:
        print(num)


if __name__ == "__main__":
    main()
